Counting Sets: Problems and Proofs
Let S be the set of all infinite sequences of 0s and 1s. Show that S is uncountable.
Proof: Use Cantor's diagonal argument.
Assume (for contradiction) that we have an enumeration of the elements of S; let it be S = {s1,s2,s3,...} where each sn is an infinite sequence of 0s and 1s. We'll write s1=s1,1,s1,2,s1,3,..., s2=s2,1,s2,2,s2,3,..., and so on. So sn=sn,1,sn,2,sn,3,.... We denote the mth element of sn by sn,m. Construct a new sequence t=t1,t2,t3,... of 0s and 1s as follows: tn=sn,n−1. t is an element of S, since it is an infinite sequence of 0s and 1s. However, t cannot be in the enumeration above. Suppose that t=sk for some value of k. Then tk=sk,k. However, by consutrction, tkneqsk,k. Since this is a contradiction, we can conclude that S is not countable.
Let S be the set of all finite subsets of N. Show that S is countable.
Proof: Construct an injective function f from S→N. Let p1,p2,p3,... be a sequence of primes in ascending order. For any finite subset T⊆N, start by ordering the elements of T in ascending order, T=t1,t2,t3,..., which t1<t2<t3<...<tn. Let f(T)=p1t1∙p2t2∙...∙pntn.
To check that f is injective, suppose that f(T)=f(T′). Then p1t1∙p2t2∙...pntn=p′1t1∙p′2t2∙...p′ntn. By the fundamental theorem of arithmetic these two products can only be equal if n=n′ and each of the corresponding powers is equal.
4.11 The countable union of countable sets is countable
Proof: Consider some countable sets X0,X1,X2,... where X=i∈N⋃Xi.
Suppose these are all disjoint sets. Otherwise, we can consider the sets X′0=X0,X′1=X1∖X0,X′2=X2∖(X0∪X1).... All of these are countable, since we know that a subset of a countable set is countable, and they have the same union X.
Construct the possibly infinite table by writing the elements of X0,X1,X2,... in the folling pattern:
a00 a01 a02 ...
a10 a11 a12 ...
a20 a21 a22 ...
...
where aij is the jth element of set Xi. The table contains all the elements of X=i∈N⋃Xi.
f:X→N×N such that aij↦(i,j) is an injection.
Since the cartesian product of countable sets is countable, there exists an injection g:N×N→N.
So, g∘f:X→N is also an injection (since the composition of inecjtions is an injection).
So X is countable.
4.18 Let S be the set of all surjective functions from the set of positive integers to the set {0,1}. Show that S is uncountable.
Proof Idea: Let S={f:Z+→{0,1}}. Let g=N→S be some function. Let's show that g is not bijective (in particular, it is not surjective).
Define fg:N→{0,1} as follows:
fg(n)={0 if (g(n))(n)=1,1 if (g(n))(n)=0
Note that this makes g(n)∈S, so g(n) is a function N→S. So we can evaluate g(n) at any positive integer and obtain either 0 or 1. So (g(n))(n) is either 0 or 1.
Show that fg∈S but fg≠g(m) for every m∈N. So g is not surjective.